package com.zang.blogz.model.output;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 归档
 *
 * @author 臧臧 on 2022/6/22
 */
@Data
@Accessors(chain = true)
public class ArchiveVO implements Serializable {

    @ApiModelProperty(value = "文章id")
    private Integer id;

    @ApiModelProperty(value = "文章名称")
    private String articleTitle;

    private String articleCover;

    @ApiModelProperty(value = "文章创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;

}